/*
    这里写一些组件样式
*/
.delete-btn {
    position: absolute;
    right: -.01rem;
    top: 0;
    margin: .02rem .009rem;
    display: block;
    width: .3rem;
    height: .3rem;
    z-index: 3;

    //当初没写好
    //@deprecated
    .delete-icon {
        margin: auto;
        border-radius: 99%;
        width: .22rem;
        height: .22rem;
        background: url("../images/common/x.png") center center;
        background-size: cover;
        z-index: 2;
    }
}

//新版本使用这个，图片删除的x
.delete-icon {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: .22rem;
    height: .22rem;
    margin: auto;
    border-radius: 99%;
    background: url("../images/common/x.png") center center;
    background-size: cover;
    z-index: 2;
}

//提醒数字
.tip-num {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: .14rem;
    height: .14rem;
    border: 1px solid red;
    border-radius: 99%;
    text-align: center;
    line-height: 1em;
    font-size: .12rem !important;
    background: red;
    color: #fff !important;

    &.two-num {
        right: -.02rem;
        width: .18rem;
        height: .16rem;
        line-height: 1.2em;
    }

    &.dot {
        right: -.04rem;
        width: .18rem;
        height: .16rem;
        line-height: .7em;
        font-weight: bold;
        letter-spacing: .01rem;
        padding-left: .01rem;
        border-radius: 9px;
    }
}

//mask
.rich-text {
    background-color: white;

    .content {
        padding: .1rem .1rem .1rem .15rem;

        img {
            width: 100%;
        }

        span,
        p {
            color: #505050 !important;
            font-size: .18rem !important;
        }
    }

    .btn-box {
        text-align: center;
    }
}

//mui-slider begin
.mui-slider {
    .loading-box {
        position: relative;
        text-align: center;
        height: 1.05rem;
        margin: auto;
    }

    .mui-spinner {
        width: .3rem;
        height: .3rem;
    }

    .no-item {
        height: 1.05rem;
    }

    .placeholder {
        background-color: #fafafa;

        > img {
            position: absolute;
            top: .2rem; //广告图,向上translate了一点,故该图片要放下一点
            right: 0;
            bottom: 0;
            left: 0;
            width: .65rem !important;
            height: .65rem !important;
            margin: auto;
        }
    }
}

.mui-slider-indicator {
    bottom: 0;

    .mui-indicator {
        width: .08rem;
        height: .08rem;
        background: #ddd;
        box-shadow: none;
        //box-shadow: 0 0 1px 1px #03b1be;

        &.mui-active {
            background: #03b1be;
        }
    }
}
//mui-slider end

//mui-btn begin
//radio use this style
.lf-radio,
.mui-btn {
    padding: .06rem .12rem;
    margin: .1rem .12rem .1rem 0;
    border: 1px solid #ccc;

    //&:active{
    //    background: #ccc;
    //}

    &.text-dot {
        padding: .06rem .05rem;
        width: .7rem;
    }
}

.mui-btn.active {
    color: #fff;
    border-color: #2cc57b;
    background-color: #2cc57b;
}
//mui-btn end


//lf-select begin
.lf-select {
    padding: 0 .1rem;
    margin-bottom: 0;
    max-width: 2.5rem;
    height: .34rem;
    line-height: .34rem;
    font-size: .15rem;
    &.arrow {
        -webkit-appearance: menulist;
    }
}
//lf-select end


//developing begin
.developing {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    text-align: center;
    z-index: -1;
    opacity: 0;

    &.show {
        z-index: 999;
        opacity: 1;
    }

    .text {
        position: absolute;
        bottom: 50%;
        right: 50%;
        width: 1.48rem;
        height: .375rem;
        border-radius: 1px;
        line-height: .375rem;
        -webkit-transform: translate(50%);
        font-size: .15rem;
        color: #fff;
        background-color: #03b1be;
        opacity: .85;
    }
}
//developing end


.lf-img {
    //单独作为img元素时
    &img {
        width: 100%;
        height: auto;
    }

    //作为背景图时
    //此时要注意的是,必须设置height：
    //若父元素/容器0，本身height为auto,结果height就为0了
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

//fixed 组件
.fixed-wrapper {
    position: relative;
    height: .6rem;
}

.fixed-content {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: .6rem;
    background-color: #fff;
    z-index: 99;

    .mui-btn {
        height: .375rem;
        line-height: .375rem;
        font-size: .15rem;

        &:only-child {
            width: 100%;
            margin: 0 .15rem;
        }
    }
}

//暂无记录
//很少使用,请使用no-data
.no-record{
    text-align: center;

    .img-no-record{
        margin-top: 1.19rem;
        margin-bottom: .16rem;
        width: 1.04rem;
    }

    .img-text{
        font-size: 0.18rem;
        color: #999;
    }

}

//暂无数据组件样式
.no-data{

    img{
        margin: .943rem 0 0 0;
        width: .711rem;
    }

    span{
        margin: .236rem 0 0 0;
        text-align: center;
        font-size: .18rem !important;
        color: #999;
    }

    button{
        margin: .6rem 0 0 0;
        padding: 0;
        font-size: .16rem !important;
        color: #222;
        width: 1.18rem;
        height: .425rem;
    }
}
